package com.fengxu.gmall;

import com.alibaba.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;

@SpringBootApplication
@EnableDubbo // 启用dubbo的注解
@EnableHystrix // 开启断路器
//@EnableCircuitBreaker // 这个同也是开启断路器两者并无太大区别
public class BootProviderMain {

    public static void main(String[] args) {
        SpringApplication.run(BootProviderMain.class, args);
    }

}
